<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cangku_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cangku_id" data-rule="required" data-source="cangku/index" class="form-control selectpage" name="row[cangku_id]" type="text" value="{$row.cangku_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sku')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sku" class="form-control" name="row[sku]" type="text" value="{$row.sku|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_no" class="form-control" name="row[order_no]" type="text" disabled value="{$row.order_no|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Location')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-location" class="form-control" name="row[location]" type="text" value="{$row.location|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" class="form-control" name="row[num]" type="number" value="{$row.num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Channel_source')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <select  id="c-channel_source" class="form-control selectpicker" name="row[channel_source]">
                {foreach name="channel_source" item="vo"}
                    <option value="{$vo}" {in name="vo" value="$row.channel_source|htmlentities"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Batch_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-batch_number" class="form-control" name="row[batch_number]" type="text" value="{$row.batch_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="type" item="vo"}
                    <option value="{$vo}" {in name="vo" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('In_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-in_num" class="form-control" name="row[in_num]" type="number" value="{$row.in_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Not_in_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-not_in_num" class="form-control" name="row[not_in_num]" type="number" value="{$row.not_in_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remaining')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remaining" class="form-control" name="row[remaining]" type="text" value="{$row.remaining|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">出库数量:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-out_num" class="form-control" name="row[out_num]" disabled="" type="text" value="{$row.out_num|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">损坏数量:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-damage_num" class="form-control" name="row[damage_num]" disabled="" type="text" value="{$row.damage_num|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">退货数量:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-return_num" class="form-control" name="row[return_num]" disabled="" type="text" value="{$row.return_num|htmlentities}">
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
